<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <img src="https://fanyi-cdn.cdn.bcebos.com/static/translation/img/header/logo_e835568.png" alt="">
</body>
<script>
  var img = document.querySelector('img')
  img.addEventListener('click', function () {
    img.style.transform = 'rotate(-90deg)'
  })
</script>

</html>